import React from 'react';
import { HashRouter, BrowserRouter, Routes, Route } from "react-router-dom";

//react-redux相关
import { Provider, connect } from 'react-redux';
import store from '@news/redux/store.js';
// import action from '@news/redux/action.js';

//页面URL
import Home from '@news/pages/home/index.jsx';
import Mine from '@news/pages/mine/index.jsx';
import About from '@news/pages/about/index.jsx';
import Tabbar from '@news/components/tabbar/tabbar.jsx';

export default () => {
    return (
        <Provider store={store}>
            <HashRouter>
                <Routes>
                    <Route path="/" element={<Home />} />
                    <Route path="/home" element={<Home />} />
                    <Route path="/mine" element={<Mine />} />
                    <Route path="/about" element={<About />} />
                </Routes>
                <Tabbar refs='tabbar' />
            </HashRouter>
        </Provider>

    )
};
